//
//  JWShopShoppingCartVC.m
//  jinwang
//
//  Created by jzb on 2018/3/23.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "JWShopShoppingCartVC.h"

@interface JWShopShoppingCartVC ()

@property (nonatomic,strong) UIButton *preserveBtn;

@end

@implementation JWShopShoppingCartVC

- (void)viewDidLoad {
    [super viewDidLoad];

    UIBarButtonItem *preserveItem = [[UIBarButtonItem alloc]initWithCustomView:self.preserveBtn];
    self.navigationItem.rightBarButtonItem = preserveItem;
}

#pragma mark -懒加载
- (UIButton *)preserveBtn{
    if (!_preserveBtn) {
        _preserveBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _preserveBtn.frame = CGRectMake(0, 0, 44, 44);
        [_preserveBtn setTitle:@"编辑" forState:UIControlStateNormal];
        [_preserveBtn addTarget:self action:@selector(preserveButOnclick:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _preserveBtn;
}

- (void)preserveButOnclick:(UIButton *)sender{
    
   
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
